<script type="text/javascript">
function asyncbox_import(id){
	asyncbox.open({
		id : 'A_id',
		url : "index.php?c=zy_mend&m=imports&mc_mend_id=" + id,
		title: "导入",
		//btnsbar : $.btn.OKCANCEL, //按钮栏配置请参考 “辅助函数” 中的 $.btn。
		width: 500,
		height:200,
		
	});
}
	
</script>
<div class="main_content">
	<table width="98%" name="tab_main" id="tab_main" class="tab_main" border="0" cellpadding="0" cellspacing="1" align="left">
	<thead>
		<tr>
			<th width="6%">序号</th>
			<th>维修单号</th>
			<th width="18%">经办人</th>
			<th width="15%">经办日期</th>
			<th width="30%">操作</th>
		</tr>
	</thead>
	<tbody>
	{%foreach from=$arr item=arr_item%}
		<tr class="list_{%$arr_item.mc_mend_id%}">
				<td>
					{% if $zy_mend_log_arr[$arr_item.mc_mend_id] %}
						<div id="sign_{%$arr_item.mc_mend_id%}" class="sign_pm pcursor sign_plus" onclick="showList(this,{%$arr_item.mc_mend_id%})"></div>
					{% else %}
						<div class="sign_pm sign_minus"></div>
					{% /if %}
				</td>
				<td>{%$arr_item.mc_mend_no%}</td>
				<td>{%$admin_info[$arr_item.admin_user_id]%}</td>
				<td>{%$arr_item.mc_mend_time|date_format:"%Y-%m-%d"%}</td>				
				<td>
				<a href='index.php?c=zy_mend&m=browse&mc_mend_id={%$arr_item.mc_mend_id%}'>查看</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_mend&m=edit&mc_mend_id={%$arr_item.mc_mend_id%}'>修改</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_mend&m=del&mc_mend_id={%$arr_item.mc_mend_id%}' onclick="return confirm('您确认删除吗？')">删除</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_mend_log&m=add&mc_mend_id={%$arr_item.mc_mend_id%}'>维修</a>&nbsp;&nbsp;
				<a href='index.php?c=zy_mend&m=imports&mc_mend_id={%$arr_item.mc_mend_id%}'>导入</a>&nbsp;&nbsp;
			</td>
		</tr>
		<tr class="hide_chunk">
			<td colspan="6">
				<div class="arrow_open"></div>
				
				<div class="load_list">
					<table width="96%" name="tab_sub" id="tab_sub" class="tab_sub" border="0" cellpadding="0" cellspacing="1" align="left">
						<thead>
							<tr>
								<th>设备自编号</th>
								<th>设备名称</th>
								<th>规格型号</th>
								<th>预计修理费用</th>
								<th>承修单位</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>	
							{%if $zy_mend_log_arr[$arr_item.mc_mend_id]%}
								{%foreach item=list from=$zy_mend_log_arr[$arr_item.mc_mend_id]%}
								<tr>
									<td>{%$list.mc_no%}</td>
									<td>{%$list.mc_name%}</td>
									<td>{%$list.mc_model%}</td>
									<td>{%$list.mc_mend_cost%}</td>
									<td>{%$list.mend_comp%}</td>
									<td>
										<a href='index.php?c=zy_mend_log&m=browse&mend_log_id={%$list.mend_log_id%}'>查看</a>&nbsp;&nbsp;
										<a href='index.php?c=zy_mend_log&m=edit&mend_log_id={%$list.mend_log_id%}'>修改</a>&nbsp;&nbsp;
										<a href='index.php?c=zy_mend_log&m=del&mend_log_id={%$list.mend_log_id%}' onclick="return confirm('您确认删除吗？')">删除</a>&nbsp;&nbsp;
									</td>
								</tr>
								{%/foreach%}
							{%/if%}
						</tbody>										
					</table>
				</div>
			</td>
		</tr>	
	{%/foreach%}
	</tbody>
	{%if $arr_item %}
	<tfoot>
		<tr>
			<td colspan="6"><div id="pager">{%$page_footer%}</div></td>
		</tr>
	</tfoot>
	{%/if%}
	</table>
	
	<div class="btn_list">
		<span class="btn_add" onclick="location.href='?c=zy_mend&m=add'">添 加</span>
	</div>
</div>
